<?php
if (Yii::app()->user->isGuest){ ?>
<?php /* @var $this Controller */ ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
	<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
	<meta name="language" content="en" />

	<!-- blueprint CSS framework -->
	<link rel="stylesheet" type="text/css" href="<?php echo Yii::app()->request->baseUrl; ?>/css/screen.css" media="screen, projection" />
	<link rel="stylesheet" type="text/css" href="<?php echo Yii::app()->request->baseUrl; ?>/css/print.css" media="print" />
	<!--[if lt IE 8]>
	<link rel="stylesheet" type="text/css" href="<?php echo Yii::app()->request->baseUrl; ?>/css/ie.css" media="screen, projection" />
	<![endif]-->

	<link rel="stylesheet" type="text/css" href="<?php echo Yii::app()->request->baseUrl; ?>/css/main.css" />
	<link rel="stylesheet" type="text/css" href="<?php echo Yii::app()->request->baseUrl; ?>/css/form.css" />
	
	<link rel="stylesheet" type="text/css" href="<?php echo Yii::app()->request->baseUrl; ?>/css/font-awesome/css/font-awesome.css" />
	
	<link rel="stylesheet" type="text/css" href="<?php echo Yii::app()->request->baseUrl; ?>/css/parallax-slider.css" />
	<link rel="stylesheet" type="text/css" href="<?php echo Yii::app()->request->baseUrl; ?>/css/app.css" />

	<link rel="stylesheet" type="text/css" href="<?php echo Yii::app()->request->baseUrl; ?>/css/stylesmenu.css" />
	
	<?php Yii::app()->bootstrap->register(); ?>

	<title><?php echo CHtml::encode($this->pageTitle); ?></title>
</head>

<body>

<?php
if(substr($_SERVER['REQUEST_URI'], -10)!='user/login'){
?>
<div id="header1">
          <div id="header1_2">
		  <marquee direction="left" scrolldelay="200">
               <?php
                         echo '<b>' . Page::model()->find('page_kategori_id=9')->isi . '</b>';
                         
                ?> 
			</marquee>
          </div>
</div>
<div id="header2"><img id='img_10' src='<?php echo Yii::app()->request->baseUrl; ?>/images/index/index_10.jpg' width='1366' height='119' border='0'  /></div>


<div id='cssmenu'> 
    <ul id="nav">
		<li>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</li>
        <li><a href='<?php echo Yii::app()->createUrl(''); ?>'>Home</a></li>
        <li class='active has-sub'><a href='#'>Profil</a>
		  <ul>
		   <li><a href='<?php echo Yii::app()->createUrl('/profil/page/cat/5'); ?>'>Visi-Misi</a></li>
		   <li><a href='<?php echo Yii::app()->createUrl('/profil/page/cat/6'); ?>'>Tugas dan Wewenang</a></li>
		   <li><a href='<?php echo Yii::app()->createUrl('/profil/page/cat/7'); ?>'>Struktur Organisasi</a></li>
		   <li><a href='<?php echo Yii::app()->createUrl('/pejabat/index'); ?>'>Profil Pimpinan</a></li>
		   <li><a href='<?php echo Yii::app()->createUrl('/profil/page/cat/8'); ?>'>Sejarah</a></li>
		  </ul>
		</li>
		
    <li><a href="#">Organisasi</a>
        <ul>
          <?php 
          $bidang = Bidang::model()->findAll(array('order'=>'id'));
          foreach($bidang as $row){
          ?>  
          <li class='has-sub'><a href='#'><?php echo $row->nama_bidang; ?></a>
            <ul>
              <li><a href='<?php echo Yii::app()->createUrl('/tugasWewenang/view/id/'.$row->id); ?>'>Tugas & Wewenang</a>
                <li><a href='<?php echo Yii::app()->createUrl('/strukturOrganisasi/view/id/'.$row->id); ?>'>Struktur Organisasi</a>
                  <li><a href='<?php echo Yii::app()->createUrl('/kegiatan/list/id/'.$row->id); ?>'>Kegiatan</a>
            </ul>  
          </li>
          <?php
          }
          ?>
          
        </ul>
    </li>

    <li><a href="#">Info Perkara</a>
				<ul>
					<li><a href='<?php echo Yii::app()->createUrl('/perkaraPidum'); ?>'>Pidana Umum</a></li>
					<li><a href="#">Pidana Khusus</a></li>
				</ul>
		</li>
		<li><a href="#">Pengaduan Masyarakat</a>
		  <ul>
		   <li><a href='<?php echo Yii::app()->createUrl('/pengaduan/index'); ?>'>Kirim Pengaduan</a></li>
		   <li><a href='<?php echo Yii::app()->createUrl('/pengaduan/list'); ?>'>Lihat Pengaduan</a></li>
		  </ul>
		</li>
        <li><a href="#">Kontak</a></li>
    </ul>
</div>


<?php
}
?>


<?php echo $content; ?>

<?php
if(substr($_SERVER['REQUEST_URI'], -10)!='user/login'){
?>
<div class="footer">
    <div class="container">
        <div class="row">
            <div class="col-md-4 md-margin-bottom-40" style="min-height:350px;border-right:1px dotted">
                <div class="headline">
                    <h4><img id='img_16' src='<?php echo Yii::app()->request->baseUrl; ?>/images/index/index_56.jpg' border='0'  />
                      Pengaduan Masyarakat</h4>
                </div>
                <div class="div-pengaduan">
                  Anda dapat memberikan informasi yang dapat membantu Kami dalam melaksanakan tugas Kejaksaan, untuk pengaduan masyarakat
                  dan pelaporan Whistle Blowing System (WBS)
                </div>
                <div class="contact-details">
                    <ul class="contact">
                         <?php
                         $pengaduan=Pengaduan::model()->findAll(array("limit"=>5));
                         foreach($pengaduan as $rowPengaduan){
                         ?>


                        <li><i class="fa fa-warning"></i><?php echo $rowPengaduan->subjek_pengaduan; ?></li>

                        <?php
                        }
                        ?>
                        <li><i>
                        <div class="div-button">
                        <a class="btn-orange" href="<?php echo Yii::app()->createUrl('pengaduan/list'); ?>">Selengkapnya</a>
                        </div>
                        </i>
                        </li>
                    </ul>
                </div>
            </div>


            <div class="col-md-3" style="min-height:350px;border-right:1px dotted">
                <div class="headline"><h4>
                  <img id='img_16' src='<?php echo Yii::app()->request->baseUrl; ?>/images/index/index_57.jpg' border='0'  />
                  Link</h4></div>
                <div class="div-link1"><img id='img_16' src='<?php echo Yii::app()->request->baseUrl; ?>/images/index/arrows1.png' border='0'  /> Kejaksaan Agung</div>  
                <div class="div-link2"><img id='img_16' src='<?php echo Yii::app()->request->baseUrl; ?>/images/index/arrows2.png' border='0'  /> Kejaksaan Negeri Jakarta Selatan</div>  
                <div class="div-link2"><img id='img_16' src='<?php echo Yii::app()->request->baseUrl; ?>/images/index/arrows2.png' border='0'  /> Kejaksaan Negeri Jakarta Utara</div>  
                <div class="div-link2"><img id='img_16' src='<?php echo Yii::app()->request->baseUrl; ?>/images/index/arrows2.png' border='0'  /> Kejaksaan Negeri Jakarta Barat</div>  
                <div class="div-link2"><img id='img_16' src='<?php echo Yii::app()->request->baseUrl; ?>/images/index/arrows2.png' border='0'  /> Kejaksaan Negeri Jakarta Timur</div>  
                <div class="div-link2"><img id='img_16' src='<?php echo Yii::app()->request->baseUrl; ?>/images/index/arrows2.png' border='0'  /> Mahkamah Agung</div>  
                <div class="div-link2"><img id='img_16' src='<?php echo Yii::app()->request->baseUrl; ?>/images/index/arrows2.png' border='0'  /> Mahkamah Konstitusi</div>  
                <div class="div-link2"><img id='img_16' src='<?php echo Yii::app()->request->baseUrl; ?>/images/index/arrows2.png' border='0'  /> Komisi Pemberantasan Korupsi</div>  
            </div>


            <div class="col-md-4">
                <div class="headline">
                  <h4>
                    <img id='img_16' src='<?php echo Yii::app()->request->baseUrl; ?>/images/index/index_58.jpg' border='0'  />
                    Daftar Buronan</h4>
                  </div>
                <div class="col-md-3">
              <img id='img_16' class="picture-border" src='<?php echo Yii::app()->request->baseUrl; ?>/images/buronan/<?php echo Buronan::model()->find()->photo; ?>' border='0'  />
              </div>

            <div class="col-md-7">
            <span class="judul-indexburonan">
              <?php echo Buronan::model()->find()->nama; ?>
            </span>
            <br />
            <span class="isi-indexburonan">
              Jika Anda mempunyai informasi mengenai buronan ini dapat menghubungi nomor :
            </span>  
            <br />
            <span class="isi-indextelpburonan">
              021-789476
            </span>  
            <br />
            <span class="isi-indexburonan">
              atau email 
            </span>  
            <br />
            <span class="isi-indextelpburonan">
              email@kejatidki.go.id
            </span>  
            <br />
            <div class="div-button">
            <a class="btn-orange" href="<?php echo Yii::app()->createUrl('buronan/list'); ?>">Selengkapnya</a>
            </div>
              
            </div>     

            
           <?php $this->widget('application.extensions.counter.mycounter'); ?>
           
          
            <div class="col-md-7" style="margin-top:10px;margin-bottom:15px;">
              <img class="picture-border" src='<?php echo Yii::app()->request->baseUrl; ?>/images/lpse.jpg' border='0' style="width:500px;height:60px;"  />
            </div> 
      
        
            </div>
        
        </div>

    </div>
</div>


<div class="copyright">
    <div class="container">
        <div class="row">
            <div class="col-md-12">
               ISI SITUS BERSIFAT INFORMATIF BUKAN MERUPAKAN LEGAL OPINION DARI KEJAKSAAN TINGGI DKI JAKARTA. APABILA TERDAPAT DATA ELEKTRONIK BASED YANG BERBEDA<BR />
                DENGAN DATA RESMI PAPER, MAKA YANG MENJADI ACUAN ADALAH DATA RESMI PAPER BASED.

                <br /><br />
                <div class="div-button">
                <a class="btn-hijau" href="">Copyright &copy; <?php echo date("Y"); ?>. All Right Reserved.</a>
                </div>
                <br />
            </div>
        </div>
    </div>
</div>
<?php
}
?>


<script type="text/javascript" src="<?php echo Yii::app()->request->baseUrl; ?>/js/jquery.flexslider-min.js"></script>
<script type="text/javascript" src="<?php echo Yii::app()->request->baseUrl; ?>/js/modernizr.js"></script>
<script type="text/javascript" src="<?php echo Yii::app()->request->baseUrl; ?>/js/jquery.cslider.js"></script>
<script type="text/javascript" src="<?php echo Yii::app()->request->baseUrl; ?>/js/app.js"></script>
<script type="text/javascript" src="<?php echo Yii::app()->request->baseUrl; ?>/js/index.js"></script>
<script type="text/javascript" src="<?php echo Yii::app()->request->baseUrl; ?>/js/scriptmenu.js"></script>

<script type="text/javascript">
	jQuery(document).ready(function(){
		App.init();
		App.initSliders();
		Index.initParallaxSlider();

        $('#da-slider').cslider({
            autoplay : true,
            bgincrement : 500
        });
	});
</script>

</body>
</html>


<!-- Untuk User Admin -->
<?php
}else{

include('main_admin.php');
}
?>
<!-- Untuk User Admin -->